import { createDomElement } from '../../DOM'
import { createReactInstance } from '../createReactInstance'

const createStateNode = (fiber) => {
  // 普通节点
  if (fiber.tag === "host_component") {
    return createDomElement(fiber)
  } else {
    return createReactInstance(fiber)
  }
}

export default createStateNode